/**
 * COPYRIGHT. Harry Wu 2011. ALL RIGHTS RESERVED.
 * Project: just
 * Author: Harry Wu <harrywu304@gmail.com>
 * Created On: Jun 12, 2011 1:52:15 PM
 *
*/ 
package org.justframework.core;

import java.net.URI;
import java.util.HashMap;
import java.util.Map;

/**
 * Request bean
 *
 */
public class Request {
	/**
	 * request resource
	 */
	private URI uri;
	
	/**
	 * request params
	 */
	private Map<String,Object> params;
	
	/**
	 * options about request
	 */
	private Map<String,Object> options = new HashMap<String,Object>();
	
	/**
	 * request method, identify the semantic of request
	 */
	private RequestMethod requestMethod;
	
	/**
	 * connect timout
	 */
	private long connectTimeout = 1000L;
	
	/**
	 * operation timeout
	 */
	private long operateTimeout = 5000L;
	
	public URI getUri() {
		return uri;
	}
	
	public void setUri(URI uri) {
		this.uri = uri;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}
	
	public Map<String, Object> getOptions() {
		return options;
	}
	
	public void setOptions(Map<String, Object> options) {
		this.options = options;
	}
	
	public RequestMethod getRequestMethod() {
		return requestMethod;
	}

	public void setRequestMethod(RequestMethod requestMethod) {
		this.requestMethod = requestMethod;
	}

	public long getConnectTimeout() {
		return connectTimeout;
	}
	
	public void setConnectTimeout(long connectTimeout) {
		this.connectTimeout = connectTimeout;
	}
	
	public long getOperateTimeout() {
		return operateTimeout;
	}

	public void setOperateTimeout(long operateTimeout) {
		this.operateTimeout = operateTimeout;
	}


}
